<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>课程页面</title>
    <script type="text/javascript" src="/js/jquery-3.5.1.min.js"></script>
</head>
<body>
    <table border="1" cellspacing="0">
        <tr>
            <th>序号</th>
            <th>课程名称</th>
            <th>课程介绍</th>
            <th>价格：元</th>
            <th>购买</th>
        </tr>
        <tr th:each="course,courseStatus : ${courseList}">
            <td th:text="${course.id}">0</td>
            <td th:text="${course.courseName}">拉勾课程</td>
            <td th:text="${course.description}">对标阿里P7</td>
            <td th:text="${course.price}">0.00</td>
            <td><button><a th:href="@{'/order/createOrder?username=meisong&courseId='+${course.id}}">购买</a> </button></td>
        </tr>
    </table>
</body>
</html>